package com.city.domain.city;

import javax.persistence.*;
import java.util.Objects;

/**
 * @deprecation: 案件
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-18 13:14
 */
@Entity
@Table(name = "city_event", schema = "city", catalog = "")
public class CityEvent {
    private int id;//主键
    private String taskId;//任务号
    private String createTime;//案发时间
    private String disposedepariName;//处理单位
    private String eventSrcname;//上报方式
    private String eventTypeBig;//案件大类
    private String eventTypeTwo;//案件小类
    private String content;//案件详情
    private String address;//案发地址
    private String province;//省份
    private String city;//市
    private String county;//县城区
    private String town;//镇
    private String village;//村
    private String lng;//经度
    private String lat;//纬度
    private int schedule;//案件进度
    private String passhuman;//案件接手人员
    private String passuntt;//中转人员记录
    private String firstOperaterName;//首次接线人员
    private String instHumanName;//当时的值班长
    private String eventNature;//案件性质
    private int filenum;//案件涉及的文件数量
    private String reportHumanName;//上报者
    private String comment;//案件结论、评论
    private String updateTime;
    private String deadline;//截止时间
    private int isontime;//是否在规定时间内处理完成
    private int isrework;//是否返工
    private int branchId;//部门id
    private int isaccpet;//是否立案

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.AUTO)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "event_srcname")
    public String getEventSrcname() {
        return eventSrcname;
    }

    public void setEventSrcname(String eventSrcname) {
        this.eventSrcname = eventSrcname;
    }

    @Basic
    @Column(name = "event_type_big")
    public String getEventTypeBig() {
        return eventTypeBig;
    }

    public void setEventTypeBig(String eventTypeBig) {
        this.eventTypeBig = eventTypeBig;
    }

    @Basic
    @Column(name = "event_type_two")
    public String getEventTypeTwo() {
        return eventTypeTwo;
    }

    public void setEventTypeTwo(String eventTypeTwo) {
        this.eventTypeTwo = eventTypeTwo;
    }

    @Basic
    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Basic
    @Column(name = "address")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Basic
    @Column(name = "province")
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    @Basic
    @Column(name = "city")
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Basic
    @Column(name = "county")
    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    @Basic
    @Column(name = "town")
    public String getTown() {
        return town;
    }

    public void setTown(String town) {
        this.town = town;
    }

    @Basic
    @Column(name = "village")
    public String getVillage() {
        return village;
    }

    public void setVillage(String village) {
        this.village = village;
    }

    @Basic
    @Column(name = "lng")
    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    @Basic
    @Column(name = "lat")
    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    @Basic
    @Column(name = "schedule")
    public int getSchedule() {
        return schedule;
    }

    public void setSchedule(int schedule) {
        this.schedule = schedule;
    }

    @Basic
    @Column(name = "disposedepari_name")
    public String getDisposedepariName() {
        return disposedepariName;
    }

    public void setDisposedepariName(String disposedepariName) {
        this.disposedepariName = disposedepariName;
    }

    @Basic
    @Column(name = "passhuman")
    public String getPasshuman() {
        return passhuman;
    }

    public void setPasshuman(String passhuman) {
        this.passhuman = passhuman;
    }

    @Basic
    @Column(name = "passuntt")
    public String getPassuntt() {
        return passuntt;
    }

    public void setPassuntt(String passuntt) {
        this.passuntt = passuntt;
    }

    @Basic
    @Column(name = "first_operater_name")
    public String getFirstOperaterName() {
        return firstOperaterName;
    }

    public void setFirstOperaterName(String firstOperaterName) {
        this.firstOperaterName = firstOperaterName;
    }

    @Basic
    @Column(name = "inst_human_name")
    public String getInstHumanName() {
        return instHumanName;
    }

    public void setInstHumanName(String instHumanName) {
        this.instHumanName = instHumanName;
    }

    @Basic
    @Column(name = "event_nature")
    public String getEventNature() {
        return eventNature;
    }

    public void setEventNature(String eventNature) {
        this.eventNature = eventNature;
    }

    @Basic
    @Column(name = "filenum")
    public int getFilenum() {
        return filenum;
    }

    public void setFilenum(int filenum) {
        this.filenum = filenum;
    }

    @Basic
    @Column(name = "report_human_name")
    public String getReportHumanName() {
        return reportHumanName;
    }

    public void setReportHumanName(String reportHumanName) {
        this.reportHumanName = reportHumanName;
    }

    @Basic
    @Column(name = "comment")
    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    @Basic
    @Column(name = "update_time")
    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "create_time")
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "task_id")
    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    @Basic
    @Column(name = "deadline")
    public String getDeadline() {
        return deadline;
    }

    public void setDeadline(String deadline) {
        this.deadline = deadline;
    }

    @Basic
    @Column(name = "isontime")
    public int getIsontime() {
        return isontime;
    }

    public void setIsontime(int isontime) {
        this.isontime = isontime;
    }

    @Basic
    @Column(name = "isrework")
    public int getIsrework() {
        return isrework;
    }

    public void setIsrework(int isrework) {
        this.isrework = isrework;
    }

    @Basic
    @Column(name = "branch_id")
    public int getBranchId() {
        return branchId;
    }

    public void setBranchId(int branchId) {
        this.branchId = branchId;
    }

    @Basic
    @Column(name = "isaccpet")
    public int getIsaccpet() {
        return isaccpet;
    }

    public void setIsaccpet(int isaccpet) {
        this.isaccpet = isaccpet;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CityEvent cityEvent = (CityEvent) o;
        return id == cityEvent.id &&
                schedule == cityEvent.schedule &&
                filenum == cityEvent.filenum &&
                isontime == cityEvent.isontime &&
                isrework == cityEvent.isrework &&
                branchId == cityEvent.branchId &&
                isaccpet == cityEvent.isaccpet &&
                Objects.equals(taskId, cityEvent.taskId) &&
                Objects.equals(createTime, cityEvent.createTime) &&
                Objects.equals(disposedepariName, cityEvent.disposedepariName) &&
                Objects.equals(eventSrcname, cityEvent.eventSrcname) &&
                Objects.equals(eventTypeBig, cityEvent.eventTypeBig) &&
                Objects.equals(eventTypeTwo, cityEvent.eventTypeTwo) &&
                Objects.equals(content, cityEvent.content) &&
                Objects.equals(address, cityEvent.address) &&
                Objects.equals(province, cityEvent.province) &&
                Objects.equals(city, cityEvent.city) &&
                Objects.equals(county, cityEvent.county) &&
                Objects.equals(town, cityEvent.town) &&
                Objects.equals(village, cityEvent.village) &&
                Objects.equals(lng, cityEvent.lng) &&
                Objects.equals(lat, cityEvent.lat) &&
                Objects.equals(passhuman, cityEvent.passhuman) &&
                Objects.equals(passuntt, cityEvent.passuntt) &&
                Objects.equals(firstOperaterName, cityEvent.firstOperaterName) &&
                Objects.equals(instHumanName, cityEvent.instHumanName) &&
                Objects.equals(eventNature, cityEvent.eventNature) &&
                Objects.equals(reportHumanName, cityEvent.reportHumanName) &&
                Objects.equals(comment, cityEvent.comment) &&
                Objects.equals(updateTime, cityEvent.updateTime) &&
                Objects.equals(deadline, cityEvent.deadline);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, taskId, createTime, disposedepariName, eventSrcname, eventTypeBig, eventTypeTwo, content, address, province, city, county, town, village, lng, lat, schedule, passhuman, passuntt, firstOperaterName, instHumanName, eventNature, filenum, reportHumanName, comment, updateTime, deadline, isontime, isrework, branchId, isaccpet);
    }

    @Override
    public String toString() {
        return "CityEvent{" +
                "id=" + id +
                ", taskId='" + taskId + '\'' +
                ", createTime='" + createTime + '\'' +
                ", disposedepariName='" + disposedepariName + '\'' +
                ", eventSrcname='" + eventSrcname + '\'' +
                ", eventTypeBig='" + eventTypeBig + '\'' +
                ", eventTypeTwo='" + eventTypeTwo + '\'' +
                ", content='" + content + '\'' +
                ", address='" + address + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", county='" + county + '\'' +
                ", town='" + town + '\'' +
                ", village='" + village + '\'' +
                ", lng='" + lng + '\'' +
                ", lat='" + lat + '\'' +
                ", schedule=" + schedule +
                ", passhuman='" + passhuman + '\'' +
                ", passuntt='" + passuntt + '\'' +
                ", firstOperaterName='" + firstOperaterName + '\'' +
                ", instHumanName='" + instHumanName + '\'' +
                ", eventNature='" + eventNature + '\'' +
                ", filenum=" + filenum +
                ", reportHumanName='" + reportHumanName + '\'' +
                ", comment='" + comment + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", deadline='" + deadline + '\'' +
                ", isontime=" + isontime +
                ", isrework=" + isrework +
                ", branchId=" + branchId +
                ", isaccpet=" + isaccpet +
                '}';
    }
}
